Python Network Programming Cookbook by 2014

Python Network Programming Cookbook by 2014
Author: 2014
Language: eng
Format: mobi
Publisher: Packt Publishing

If you set up a local FTP server and run the following script, this script will log in to the FTP server and then will upload a file. If a filename argument is not supplied from command line by default, it will upload the readme.txt file.

$ python 5_2_upload_file_to_ftp_server.py Enter your FTP password: Connecting to FTP server: localhost Login to FTP server: user=faruq Uploaded file: readme.txt $ cat /home/faruq/readme.txt This file describes what to do with the .bz2 files you see elsewhere on this site (ftp.kernel.org).